package com.imooc.form;

import com.imooc.enums.codeEnum;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class OrderForm{
    @NotEmpty(message = "姓名必填")
    private String name;

    @NotEmpty(message = "手机号必填")
    private String phone;

    @NotEmpty(message = "地址必填")
    private String address;

    @NotEmpty(message = "openid不能为空")
    private String openid;

    /**购物车是个列表，这里是一个展开点。
     */
    @NotEmpty(message = "购物车不能为空")
    private String items;
}
